package com.weiyi0519.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * Created by tommy.weiw on 2017/11/3 10:18.
 */
@RestController
public class MpTestController {
    @RequestMapping("/")
    public String home() {
        return "Hello World!!!";
    }

    @RequestMapping("/now")
    public String hehe() {
        return "现在时间1：" + (new Date()).toString();
    }
}
